import {calcWQ} from '@/components/game/aion/calcWQ.js'
import {calcFJ} from '@/components/game/aion/calcFJ.js'
import {calcSP} from '@/components/game/aion/calcSP.js'
// 选择装备对应的数据
export function changeZB(data, name, isSSWQ, occAttr) {
    console.log(name)
    let wqModel = {}
    let fjModel = {}
    let spModel = {}
    if (name == 'wuqiZ') {
        wqModel.wuqiZPre = calcWQ(data, name, isSSWQ, occAttr)
    }
    if (name == 'wuqiY') {
        wqModel.wuqiYPre = calcWQ(data, name, isSSWQ, occAttr)
    }
    if (name == 'wuqiHC') {
        wqModel.wuqiHCPre = calcWQ(data, name, isSSWQ, occAttr)
    }
    if (name == 'fjYiFu') {
        fjModel.fjYiFu = calcFJ(data, name)
    }
    if (name == 'fjXiaYi') {
        fjModel.fjXiaYi = calcFJ(data, name)
    }
    if (name == 'fjHuJian') {
        fjModel.fjHuJian = calcFJ(data, name)
    }
    if (name == 'fjShouTao') {
        fjModel.fjShouTao = calcFJ(data, name)
    }
    if (name == 'fjXieZi') {
        fjModel.fjXieZi = calcFJ(data, name)
    }
    if (name == 'spTouKui') {
        spModel.spTouKui = calcSP(data, name)
    }
    if (name == 'spXiangLian') {
        spModel.spXiangLian = calcSP(data, name)
    }
    if (name == 'spErHuanZ') {
        spModel.spErHuanZ = calcSP(data, name)
    }
    if (name == 'spErHuanY') {
        spModel.spErHuanY = calcSP(data, name)
    }
    if (name == 'spJieZhiZ') {
        spModel.spJieZhiZ = calcSP(data, name)
    }
    if (name == 'spJieZhiY') {
        spModel.spJieZhiY = calcSP(data, name)
    }
    if (name == 'spYaoDai') {
        spModel.spYaoDai = calcSP(data, name)
    }

    return {
        wqModel,
        fjModel,
        spModel
    }
}